package cn.tedu.spring.life;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestOrder {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext("cn.tedu.spring.life");
        Order order = context.getBean(Order.class);
        //开发者使用阶段
        System.out.println("4.使用阶段[gerBean()方法]");
        //关闭IoC容器
        context.close();
    }
}
